#ifndef BLOGINFO_H
#define BLOGINFO_H

#include <QObject>
#include <QWidget>
#include <QLabel>
#include <QMouseEvent>
#include <QString>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QSpacerItem>
#include "hotblog.h"

class BlogInfo : public QWidget
{
    Q_OBJECT
public:
    explicit BlogInfo(QWidget *parent = nullptr);
    ~BlogInfo();
    bool eventFilter(QObject *obj, QEvent *event);	// 添加时间过滤器声明
    void setAuthorName(QString name);
    void setAuthorHead(QString path);
    void setOtherInfo(QString info1, QString info2, QString info3);
private:
    QLabel *label_header;
    QLabel *label_username;
    QLabel *label_collection;
    QLabel *label_praise;
    QLabel *label_comment;
    QLabel *label_fans;
    QLabel *label_care;

    QList<QLabel *> labelList;
    QList<QString> strList;

    HotBlog *hotBlog;
signals:
    void labelClicked(QString str);
};

#endif // BLOGINFO_H
